<template>

  <el-table
    :data="tableData"
    stripe
    style="width: 100%">
    <el-table-column
      prop="id"
      label="id"
      width="180">
    </el-table-column>
    <el-table-column
      prop="housecode"
      label="房间号"
      width="180">
    </el-table-column>
    <el-table-column
      prop="name"
      label="姓名"
      width="180">
    </el-table-column>
    <el-table-column
      prop="checkdata1"
      label="入住时间">
    </el-table-column>
    <el-table-column
      prop="checkdata2"
      label="退房时间">
    </el-table-column>

  </el-table>

</template>

<script>
export default {
  methods:{
    loadData() {
      this.$axios
        .get("/checkin", {
          // params: {
          //   currentPage: this.currentPage,
          //   pageSize: this.pageSize,
          //   key: this.keyWord,
          // },
        })
        .then((res) => {
          this.tableData = res.data.data;
        })
        .catch((error) => {

        });
    },
  },

  data() {
    return {

      tableData: [


      ],


    }
  },
  mounted(){
    this.loadData();
  },
}
</script>
